const axios = require('axios');

async function checkOurBatch() {
  try {
    const batchId = 'batch_1763968563435_4r6i70dcf';
    
    // 查询具体批次状态
    const statusResponse = await axios.get(`http://localhost:7001/api/v1/plugin/data/status?batchId=${batchId}`);
    console.log('📈 批次详细状态:');
    console.log(JSON.stringify(statusResponse.data, null, 2));
    
    // 也查询批次列表中该批次的信息
    const batchResponse = await axios.get('http://localhost:7001/api/v1/plugin/data/batches');
    const ourBatch = batchResponse.data.data.find(batch => batch.batchId === batchId);
    if (ourBatch) {
      console.log('\n📋 我们的批次在列表中的信息:');
      console.log(JSON.stringify(ourBatch, null, 2));
    } else {
      console.log('\n❌ 在批次列表中未找到我们的批次');
    }
  } catch (error) {
    console.error('❌ 查询失败:', error.message);
    if (error.response) {
      console.error('📋 错误详情:', error.response.data);
    }
  }
}

checkOurBatch();